package net.godcode.olivenotes.pages;

import net.godcode.olivenotes.entities.Post;
import net.godcode.olivenotes.entities.PostDAO;

import org.apache.tapestry.ioc.annotations.Inject;
import org.slf4j.Logger;


/**
 * Start
 * 
 * @author Chris Lewis Dec 26, 2007 <chris@thegodcode.net>
 * @version $Id: Start.java 20 2008-01-15 07:22:45Z burningodzilla $
 */
public class Start {
	
	@Inject
	private PostDAO postDao;
	
	@Inject
	private Logger log;
	
	public Post getLastPost() {
		return postDao.findLast(true);
	}
	
}